package cn.chinaunicom.sdsi.gacx.sys.controller;

import cn.chinaunicom.sdsi.frm.base.BaseController;
import cn.chinaunicom.sdsi.gacx.sys.entity.GaElecApplyEntity;
import cn.chinaunicom.sdsi.gacx.sys.service.SysMainService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import net.sf.json.JSONObject;

/**
 * @author daikan
 * 2017-5-10 18:02:52
 *
 */

@Controller
@RequestMapping("/sysMainController")
public class SysMainController extends BaseController{

	private final Log log = LogFactory.getLog(SysMainController.class);
	
	@Autowired
	private SysMainService gaElecApplyService;

	/**
	 * 跳转至查询页面
	 */
	@RequestMapping("/toSysMain")
	public ModelAndView toSysMain(){
		log.debug("toSysMain");
		//JSONObject task = gaElecApplyService.getMainInfo();
		//System.out.println("print task = "+task);
		ModelAndView mv = new ModelAndView();
		//mv.addObject("mainInfo",task);
		mv.setViewName("frm/main");
		return mv;
	}
	
}